<!doctype html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <!-- 必须的 meta 标签 -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap 的 CSS 文件 -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="../../../static/css/main.css" th:href="@{/static/css/main.css}">
    <title>付款页面</title>
</head>
<body>
<nav class="nav nav-pills nav-justified">
    <a class="nav-link" th:href="@{/book/randBook}">首页</a>
    <a class="nav-link" th:href="@{/book/bookBrother}">分类与购买</a>
    <a class="nav-link " th:href="@{/admin/userCenter}">个人中心</a>
    <a class="nav-link" th:href="@{/shop/selectAllShop}">购物车</a>
    <a class="nav-link" th:href="@{/order/selectOrderLastAll}">查询订单</a>
</nav>

<div class="container">
    <br>
    <br>
    <span style="color: red; margin-left: 500px" th:text="${message}"></span>
    <br>
    <br>
    <form th:action="@{/order/insertOrder}">

        <div class="form-group row">
            <label for="name" class="col-sm-1 col-form-label">收货人</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="name" name="name">
            </div>
        </div>

        <div class="form-group row">
            <label for="phone" class="col-sm-1 col-form-label">电话号码</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="phone" name="phone">
            </div>
        </div>

        <div class="form-group row">
            <label for="address" class="col-sm-1 col-form-label">收货地址</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="address" name="address">
            </div>
        </div>

        <div class="form-group row">
            <label for="payMoney" class="col-sm-1 col-form-label">付款金额</label>
            <div class="col-sm-10">
                <input th:value="${session.price}" type="text" readonly class="form-control" id="payMoney" name="payMoney">
            </div>
        </div>


        <div class="form-group row">
            <div class="col-sm-10">
                <button type="submit" class="btn btn-primary">支付</button>
            </div>
        </div>
    </form>
</div>












<!-- JavaScript 文件是可选的。从以下两种建议中选择一个即可！ -->
<!-- 选项 1：jQuery 和 Bootstrap 集成包（集成了 Popper） -->

<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js"></script>

</body>
</html>